package Book;
public class BookList {
    Book[] books = new Book[10];
    private int usedSize;

    public  BookList(){
        books[0] = new Book("三国演义","罗贯中",98,"小说");
        books[1] = new Book("水浒传","吴承恩",97,"小说");
        books[2] = new Book("红楼梦","曹雪芹",19,"小说");
        this.usedSize = 3;
    }

    public Book getPos(int Pos){
        return books[Pos];
    }


    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public void setBook(Book book,int i){
        books[i] = book;
    }

    public String getName(int i){
        return books[i].getName();
    }


    public Book getBook(int i){
        return books[i];
    }
 /*   public Book.Book[] getBooks() {
        return books;
    }

    public void setBooks(Book.Book[] books) {
        this.books = books;
    }*/
}
